

package ge.info.domain.sport;

// import ge.info.domain.sport.*;
import ge.ktapestry.propertyselections.IComboItem;

import ge.ktools.StringUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;

/**
 * @author Administrator
 */
public class SportType implements java.io.Serializable, IComboItem
{

    private int sportTypeID;
    private int serviceID;
    private String name;
    private String posterCriteria;
    private Date sdate;
    private List<SportPlace> sportPlaces;

    public SportType()
    {
    }

    public boolean equals(Object o)
    {
        if (!(o instanceof SportType))
        {
            return false;
        }
        return this.getSportTypeID() == (((SportType) o).getSportTypeID());
    }

    public int getSportTypeID()
    {
        return sportTypeID;
    }

    public void setSportTypeID(int sportTypeID)
    {
        this.sportTypeID = sportTypeID;
    }

    public int getServiceID()
    {
        return serviceID;
    }

    public void setServiceID(int serviceID)
    {
        this.serviceID = serviceID;
    }

    public String getSportName()
    {
        return name;
    }

    public void setSportName(String name)
    {
        this.name = name;
    }

    public List<SportPlace> getSportPlaces()
    {
        if (sportPlaces == null)
        {
            sportPlaces = new ArrayList<SportPlace>();
        }
        return sportPlaces;
    }

    public void setSportPlaces(List<SportPlace> sportPlaces)
    {
        this.sportPlaces = sportPlaces;
    }

    public String getUniqueID()
    {
        return String.valueOf(sportTypeID);
    }

    public String getDisplayName()
    {
        return name;
    }

    /**
     * @return the posterCriteria
     */
    public String getPosterCriteria()
    {
        return posterCriteria;
    }

    /**
     * @param posterCriteria the posterCriteria to set
     */
    public void setPosterCriteria(String posterCriteria)
    {
        this.posterCriteria = posterCriteria;
    }

    public Date getSdate()
    {
        return sdate;
    }

    public void setSdate(Date sdate)
    {

        this.sdate = sdate;
    }

    public List<String> getPosterCriteriaList()
    {
        return StringUtils.splitString(posterCriteria);
    }
}
